package your.company.tables.model.cars;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;

public class InventoryVendorList implements Serializable {

   private static final Logger log = Logger.getLogger(InventoryVendorList.class);
   private static final long serialVersionUID = -6547391197128734913L;
   private String vendor;
   private List<InventoryVendorItem> vendorItems;

   public InventoryVendorList() {
      vendorItems = new ArrayList<InventoryVendorItem>();
   }

   public long getCount() {
      if (vendorItems != null) {
         return vendorItems.size();
      } else {
         return 0;
      }
   }

   public String getVendor() {
      return vendor;
   }

   public void setVendor(String vendor) {
      this.vendor = vendor;
   }

   public List<InventoryVendorItem> getVendorItems() {
      return vendorItems;
   }

   public void setVendorItems(List<InventoryVendorItem> vendorItems) {
      this.vendorItems = vendorItems;
   }
}
